using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Coriander.Google.Charting
{
    /// <summary>
    /// Chart axis style
    /// </summary>
    public class ChartAxisStyle
    {
        Int32 alignment;

        Color color;

        Int32 fontSize;

        /// <summary>
        /// Gets or sets the color
        /// </summary>
        public Color Color
        {
            get { return color; }
            set { color = value; }
        }

        /// <summary>
        /// Gets or sets the font size
        /// </summary>
        public Int32 FontSize
        {
            get { return fontSize; }
            set { fontSize = value; }
        }

        /// <summary>
        /// Gets or sets optional alignment. 
        /// By default: x-axis labels are centered, 
        /// left y-axis labels are right aligned, 
        /// right y-axis labels are left aligned. 
        /// To specify alignment, use: 
        ///     0 for centered, 
        ///     -1 for left aligned, and 
        ///     1 for right aligned.
        /// </summary>
        public Int32 Alignment
        {
            get { return alignment; }
            set { alignment = value; }
        }

        /// <summary>
        /// ctor: Color, Int32, Int32
        /// </summary>
        /// <param name="color"></param>
        /// <param name="fontSize"></param>
        /// <param name="alignment"></param>
        public ChartAxisStyle(Color color, Int32 fontSize, Int32 alignment) 
        {
            this.color      = color;
            this.fontSize   = fontSize;
            this.alignment  = alignment;  
        } 
    }
}
